package cn.merge;

import java.util.regex.Matcher;
import java.util.regex.Pattern;

/**
 * @author summit
 * @since 2022/5/24 10:50
 */
public class Test1 {
	private static Pattern compile = Pattern.compile("[\\\\/:*?\"<>|]");

	public static void main(String[] args) {
//		StringBuilder sb = new StringBuilder();
//		System.out.println(sb.length());
		String s = "sss\\";
		Matcher m = compile.matcher(s);
		boolean b = m.find();
		System.out.println(b);

		System.out.println("名称不能包含特殊字符\\/:*?\"<>|");
	}
}
